<template>
    <div>
        <h-section title="研发流程信息" collapse>
            <flexbox justify="space-between" class="cell-item">
                <flexbox>
                    <div class="cell-item-label">当前阶段：</div>
                    <div class="font-w-b">{{ stage }}</div>
                </flexbox>
            </flexbox>
            <slot name="processHistoryRecord" />
        </h-section>
        <h-section title="测试流程" collapse v-if="detail.pmpTestInformationDTO">
            <a-form layout="inline">
                <a-row>
                    <a-col :span="16">
                        <a-form-item label="提测需求名称" :span="24">
                            <span>{{ detail.versionName }}</span>
                        </a-form-item>
                        <a-form-item label="测试系统" :span="24">
                            <span>{{ detail.pmpTestInformationDTO.testSystem }}</span>
                        </a-form-item>
                        <a-form-item label="测试时间" :span="24">
                            <span>{{ detail.pmpTestInformationDTO.testStartTime }}</span>
                        </a-form-item>
                        <a-form-item label="测试方式" :span="24">
                            <span>自动提测</span>
                        </a-form-item>
                        <a-form-item label="测试类型" :span="24">
                            <span>{{ detail.pmpTestInformationDTO.testType }}</span>
                        </a-form-item>
                    </a-col>
                </a-row>
            </a-form>
            <slot name="testHistoryRecord" />
        </h-section>
    </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
    props: {
        detail: { type: Object, default: () => ({}) },
        disabled: { type: Boolean, default: false },
        stage: { type: String, default: '' },
        hasAuth: {
            type: Boolean,
            default: false
        }
    }
});
</script>

<style scoped lang="less">
@import './styles/index.less';
</style>